export function wordClound(title,datas,type) {
    //title---标题
    //datas---数据
    
    return{
        title: {
          text:title,
          left:'center',
        },
        series:[
            {
                // maskImage:img,
                type: 'wordCloud',
                sizeRange:[12,78],
                rotationRange: [0, 0],
                rotationStep: 45,
                gridSize: 8,
                rotationRange:[-45,90],
                textStyle: {
                    normal:{
                        color:function () {
                            return 'rgb(' + [
                                Math.round(Math.random() * 160),
                                Math.round(Math.random() * 160),
                                Math.round(Math.random() * 160)
                            ].join(',')+')';
                        }
                    }
                },
                   data:datas
             }
        ]
      }
  }
  